// 详情混用对象
import { mapGetters } from 'vuex'

export default {
  data() {
    return {
      strategy_dels: {}, //策略详情
      dataForm: {
        types: [], // 对比指数
      },
      strategyId: '', // 投资策略id
      /**navForm */
      typePage: 1,
      investType: null, // 投资类型
      hasClassify: false, //是否有子投资 MOM
      contrastOptions_obj: {}, // 全部指数
      contrastOptions: [], //对比指标树
      one_contrastOptions_list: [], // 已选指数
      compositionId: null
    }
  },
  created() {
    const zid = this.$route.params && this.$route.params.id // 多开标签
    this.hasClassify = this.$route.query.hasClassify
    this.investType = this.$route.query.investType 
    this.compositionId = this.$route.query.compositionId 
    if(typeof this.hasClassify === 'string') {
      switch (this.hasClassify) {
        case 'true':
          this.hasClassify = true
          break;
        default:
          this.hasClassify = false
          break;
      }
    }
    this.strategyId = parseInt(zid|| 0)
  },
  computed: {
    ...mapGetters(['userId']),
  },
  // mounted() {
  // console.log(this.strategy_dels)
  // console.log('我是mixins')
  // },
  methods: {},
}
